package com.example.stock.controller;

import com.example.stock.service.IStockService;
import com.example.stock.service.VolumeCompareService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;

/**
 * <p>
 * 股票 前端控制器
 * </p>
 *
 * @author tanlvxu
 * @since 2024-12-18
 */
@Controller
@RequestMapping("/stock")
public class StockController {
    @Autowired
    private IStockService iStockService;

    @RequestMapping("/refresh")
    public void refresh()
    {
        System.out.println(iStockService.list());
    }

    @Autowired
    private VolumeCompareService volumeCompareService;

    @RequestMapping("/calc")
    public void calc(String curDay,boolean isCals){
        volumeCompareService.testss(curDay,isCals);
    }
}
